package com.superpai.response;

import com.superpai.utils.StringUtils;

/**
 * @author Devin.Hu
 * @date 2011-8-13
 * @version V1.0
 * @description 返回结果基类
 */
public abstract class PaiPaiResponse {

	private String errorCode;

	private String errorMessage;

	public String getErrorCode() {
		return errorCode;
	}

	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}

	public String getErrorMessage() {
		return errorMessage;
	}

	public void setErrorMessage(String errorMessage) {
		this.errorMessage = errorMessage;
	}

	public boolean isSuccess() {
		if(!StringUtils.isEmpty(errorCode)){
			if(errorCode.equals("0")) return true;
		}
		return false;
	}
}
